﻿<view:WindowBase x:Class="SvnMonitor.NotificationView"
        x:ClassModifier="internal"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:local="clr-namespace:SvnMonitor"
        xmlns:view="clr-namespace:MVVMFramework.View;assembly=MVVMFramework.View"
        WindowStartupLocation="Manual"
        WindowStyle="None"
        AllowsTransparency="True"
        d:DataContext="{d:DesignInstance local:NotificationVM}"
        Height="100" Width="220" Topmost="True">
    <Border BorderBrush="Gray" BorderThickness="1" MouseDown="window_OnMouseDown"  Background="White">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            
            <Border Grid.Row="0" Grid.ColumnSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="#E7F0FF"/>
            
            <Image Source="/Images/Update24.png" Margin="10,10,5,5" HorizontalAlignment="Center"/>

            <StackPanel Grid.Column="1">
                <TextBlock Text="{Binding ProjectName}"  HorizontalAlignment="Center" Margin="0, 5, 5, 0" FontWeight="Bold" FontSize="14" TextTrimming="CharacterEllipsis"/>
                <TextBlock Text="Head revision changed"  HorizontalAlignment="Center" Margin="0,5,5,5" FontWeight="Bold"/>
            </StackPanel>
            
            <TextBlock Grid.Row="1" Text="{Binding CommitInfo}" Grid.ColumnSpan="2" Margin="5,5,5,2" HorizontalAlignment="Center" VerticalAlignment="Center"/>

            <TextBlock Grid.ColumnSpan="2" Grid.Row="2" HorizontalAlignment="Right" Margin="5,0,5,2" VerticalAlignment="Bottom">
                <Hyperlink NavigateUri="" RequestNavigate="updateToLatestVersionHyperlink_OnRequestNavigate">
                    Get It Now
                </Hyperlink>
            </TextBlock>

            <Border Grid.Row="3" Grid.ColumnSpan="2" Height="5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="#E7F0FF"/>
        </Grid>
    </Border>

</view:WindowBase>
